public void insert(String object) {
	if (state == Index.State.PARENT) {
		// Get a reference to a child here
		switch (child.getState()) {
		case ACTIVE:
		case HAVE_NOT_ATTEMPTED_INTERACTION:
			tagaImpl.send(msg);
			break;
		case AWAITING_RETERACTION_CONFIRMATION:
		case AWAITING_EXPANSION_CONFIRMATION:
			child.getMsgBuffer().add(msg);
			break;
		}

		return;
	}
	
	// rest of the code
}